import Layout from '@/views/layout/Layout'

const route = {
  path: '/notice',
  redirect: '/notice/list',
  component: Layout,
  alwaysShow: false,
  meta: {
    title: '公告管理',
    icon: 'nested'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/notice/list'),
      name: 'NoticeList',
      hidden: false,
      meta: { title: '公告列表' }
    },
    {
      path: 'add',
      component: () => import('@/views/notice/add'),
      name: 'NoticeAdd',
      hidden: true,
      meta: { title: '添加公告' }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/notice/edit'),
      name: 'NoticeEdit',
      hidden: true,
      props: true,
      meta: { title: '修改公告' }
    }
  ]
}

export default route
